package com.net.xpay.common.model.monitor;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.concurrent.atomic.AtomicLong;

/**
 * 新增监控数据
 */
@Getter
@Setter
@NoArgsConstructor
public class ApiMonitorModel {
    @ApiModelProperty(notes = "接口名称")
    private String apiName;

    @ApiModelProperty(notes = "请求总数")
    private AtomicLong reqCount;

    @ApiModelProperty(notes = "总耗时（毫秒）")
    private AtomicLong totalReqCostTime;

    @ApiModelProperty(notes = "最大耗时（毫秒）")
    private AtomicLong maxReqCostTime;

    @ApiModelProperty(notes = "最小耗时（毫秒）")
    private AtomicLong minReqCostTime;
}
